begintownscript;
variables;
short choice,i,x,y;
body;

beginstate init_state;
if(get_flag(250,10) == 0)
{	relocate_character(0,4,29);
	relocate_character(1,4,28);
	relocate_character(2,4,27);
	relocate_character(3,4,26);
	relocate_character(4,5,26);
	erase_char(22);
	erase_char(21);
	erase_char(27);
	set_total_visibility(1);
	set_character_facing(0,4);
	set_character_facing(1,4);
	set_character_facing(2,4);
	set_character_facing(3,4);
	set_character_facing(4,4);

	force_view_center(char_loc_x(7),char_loc_y(7));
	force_instant_terrain_redraw();

	reset_dialog();
	add_dialog_str(0,"_It was thirty years ago. I was just an apprentice in the Academy, but unlike many of the students I was a Keilan local._",40);
	add_dialog_str(1,"_I knew everyone in town, but liked no one. No one understood me; they always thought I was a recluse, more interested in books than people._",40);
	add_dialog_str(2,"_But there was one person who understood me, understood me absolutely. Dilecia....._",40);
	add_dialog_str(3,"His words are passionate and vivid, they sweep you back to thirty years ago in Keilan.",0);
	add_dialog_choice(0,"Ok");
	if(run_dialog(1) == 1)

	text_bubble_on_char(7,"Dilecia...");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"I wanted to know if you....");
	force_instant_terrain_redraw();
	pause(15);

	reset_dialog();
	add_dialog_str(0,"_I had known Dilecia since my childhood. She lived down the street from me, and we had always been friends._",40);
	add_dialog_str(1,"_This was the day before May Day. After weeks of talking myself into it and psyching myself up, I decided to ask her to the festival. Little did I know that I would be betrayed that day._",40);
	add_dialog_choice(0,"OK");
	if(run_dialog(1) == 1);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"I wanted to know if you");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"would like to go to");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"the festival with me.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Janok!");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"Of course I'll go,");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"I thought you'd never ask!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"So it's a date?");
	relocate_character(6,8,11);
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Tomorrow at eight.");
	force_instant_terrain_redraw();
	pause(10);

	force_view_center(3,44);
	force_instant_terrain_redraw();

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"");
	text_bubble_on_char(17,"Back in those days the Empire");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(17,"");
	text_bubble_on_char(17,"actually had troops in Keilan.");
	force_instant_terrain_redraw();
	pause(15);


	text_bubble_on_char(17,"");
	text_bubble_on_char(17,"This was before they realized");
	force_instant_terrain_redraw();
	pause(15);


	text_bubble_on_char(17,"");
	text_bubble_on_char(17,"that nothing ever happened there,");
	force_instant_terrain_redraw();
	pause(15);


	text_bubble_on_char(17,"");
	text_bubble_on_char(17,"nor ever would.");
	force_instant_terrain_redraw();
	pause(15);

	reset_dialog();
	add_dialog_str(0,"Empire swine! They destroy everything they see, how could they be so heartless as to kill something as fragile and beautiful as my love?",40);
	add_dialog_str(1,"I write this so that I will never forget what happened that day. But should someone else read my tale I ask them to imagine the anguish of being helpless as the one you love is taken from you.",40);
	add_dialog_str(2,"Read and discover the treachery the Empire is capable of, be forewarned lest you suffer my fate!",40);
	add_dialog_choice(0,"OK");
	if(run_dialog(1) == 1)

	force_view_center(char_loc_x(10),char_loc_y(10));
	text_bubble_on_char(14,"It was May Day,");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(14,"");
	text_bubble_on_char(14,"I had been with Dilecia");
	relocate_character(10,40,35);
	relocate_character(14,36,31);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(15);
	

	text_bubble_on_char(14,"");
	text_bubble_on_char(14,"throughout the festival.");
	relocate_character(10,39,35);
	relocate_character(14,35,31);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(15);


	text_bubble_on_char(14,"");
	text_bubble_on_char(14,"But at the end of the day");
	relocate_character(10,38,35);
	relocate_character(14,34,31);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(15);

	text_bubble_on_char(14,"");
	text_bubble_on_char(14,"we got split up.");
	relocate_character(14,33,31);
	relocate_character(10,37,35);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(15);

	text_bubble_on_char(14,"");
	text_bubble_on_char(14,"I wandered around town for hours");
	relocate_character(14,32,31);
	relocate_character(10,36,35);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(15);

	text_bubble_on_char(14,"");
	text_bubble_on_char(14,"looking for her.");
	relocate_character(14,31,31);
	relocate_character(10,35,35);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(15);

	text_bubble_on_char(14,"");
	relocate_character(10,34,35);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(10);

	relocate_character(10,33,35);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(10);

	relocate_character(10,32,35);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(10);

	relocate_character(10,31,35);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(10);

	relocate_character(10,30,35);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(10);

	set_character_facing(10,0);
	relocate_character(10,29,34);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(10);

	text_bubble_on_char(10,"????");
	force_instant_terrain_redraw();
	force_view_center(28,33);
	pause(15);

	force_view_center(27,32);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,31);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,30);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,29);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,28);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,27);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,26);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,25);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,24);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,23);
	force_instant_terrain_redraw();
	pause(4);

	text_bubble_on_char(11,"Come on, let's go.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(11,"");
	relocate_character(11,27,23);
	text_bubble_on_char(8,"No, I'm not ready.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	relocate_character(10,27,31);
	text_bubble_on_char(11,"You weren't so hesitant");
	force_instant_terrain_redraw();
	pause(16);


	text_bubble_on_char(11,"");
	relocate_character(10,27,31);
	text_bubble_on_char(11,"On the dance floor.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(11,"");
	text_bubble_on_char(10,"");
	relocate_character(10,27,30);
	text_bubble_on_char(8,"Leave me alone!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	relocate_character(10,27,29);
	text_bubble_on_char(8,"Get your hands off me!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(10,"");
	relocate_character(10,27,28);
	text_bubble_on_char(10,"HEY!");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(8,"Janok!");
	text_bubble_on_char(10,"");
	set_character_facing(8,4);
	text_bubble_on_char(10,"You heard her, leave her alone!");
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(8,"");
	text_bubble_on_char(10,"");
	text_bubble_on_char(11,"Hmmm....");
	pause(20);

	text_bubble_on_char(11,"");
	text_bubble_on_char(11,"Fine have her,");
	force_instant_terrain_redraw();
	pause(15);

	set_character_pose(11,1);
	force_instant_terrain_redraw();
	play_sound(69);
	pause(6);

	text_bubble_on_char(11,"");
	text_bubble_on_char(10,"NO!!");
	erase_char(8);
	run_animation();
	put_stain_on_space(27,24,2);
	force_instant_terrain_redraw();
	set_terrain(27,24,456);	
	play_sound(21);
	pause(3);


	force_instant_terrain_redraw();	
	pause(5);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"What have you done!");
	set_character_pose(11,0);
	set_character_facing(11,0);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"Don't just walk away!");
	relocate_character(11,27,22);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(11,"What are you going to do?");
	set_character_facing(11,4);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(11,"");
	set_character_pose(10,2);
	force_instant_terrain_redraw();
	put_jagged_zap(char_loc_x(10),char_loc_y(10),char_loc_x(11),char_loc_y(11),2);
	put_boom_on_char(11,6,0);
	run_animation_sound(53);
	pause(3);

	text_bubble_on_char(11,"AAGHH");
	relocate_character(11,27,21);
	force_instant_terrain_redraw();
	put_jagged_zap(char_loc_x(10),char_loc_y(10),char_loc_x(11),char_loc_y(11),2);
	put_boom_on_char(11,6,0);
	run_animation_sound(53);
	pause(3);

	text_bubble_on_char(11,"");
	relocate_character(10,27,27);
	erase_char(11);
	run_animation();
	put_stain_on_space(27,21,2);
	play_sound(29);
	set_character_pose(10,0);
	force_instant_terrain_redraw();
	pause(1);

	activate_hidden_group(1);
	set_character_pose(15,7);
	force_instant_terrain_redraw();
	pause(2);

	relocate_character(10,27,26);
	force_instant_terrain_redraw();
	pause(5);

	relocate_character(10,27,25);
	force_instant_terrain_redraw();
	pause(5);

	text_bubble_on_char(10,"Dilecia! Are you alright?");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(16,"Janok, I... I'm so sorry,");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(16,"");
	text_bubble_on_char(16,"just know that I.. love you.");
	force_instant_terrain_redraw();
	pause(15);

	set_terrain(27,24,0);
	text_bubble_on_char(16,"");
	force_instant_terrain_redraw();
	pause(10);

	message_dialog("And so that day I swore vengeance upon the Empire, vengeance that I will seek to my dying day.","What is lost can not be brought back, but those responsible can be brought to justice. This is my task, given to me from the lips of my dying love.");

	erase_char(15);

	i = 0;
	while (char_ok(i) == 0)
		{ i = i + 1; }
	force_view_center(char_loc_x(i),char_loc_y(i));
	force_instant_terrain_redraw();

	reset_dialog();
	add_dialog_str(0,"The journal ends here. Disappointed, you flip through the remaining blank pages in the back of the book. Tucked between the final page and the back cover is a folded up sheet of paper.",0);
	add_dialog_str(1,"Jszoula Keep - Would offer good staging groung against Keilan. Also could be noticed easily. Not good choice.",35);
	add_dialog_str(2,"Mountainwatch - Very isolated, large quarry nearby. Good selection. (The author came back and wrote a red check here. Looks like he made up his mind.)",35);
	add_dialog_str(3,"Subterranean caves - Interferes with communication frequencies, not a good choice.",35);
	add_dialog_str(4,"The paper seems to be an analysis of possible locations to establish a headquarters, could be useful in tracking down whoever is responsible for the golems.",0);
	add_dialog_str(5,"You place the paper in your pack, perhaps Tuchin will recognize the locations on the list. Plus the journal leaves several questions unanswered, the Academy should have more information on Janok, after all he once went to school there.",0);
	add_dialog_choice(0,"Ok");
	choice = run_dialog(1);
	if(choice == 1)
	{	reward_give(456);
		set_flag(250,10,1);
		set_flag(250,8,1);
		set_total_visibility(0);
		set_flag(7,9,1);
		end(); }
}


if(get_flag(9,8) == 0)
{	erase_char(22);
	erase_char(21);
	erase_char(27);
	set_total_visibility(1);
	relocate_character(0,38,8);
	relocate_character(1,39,8);
	relocate_character(2,40,8);
	relocate_character(3,41,8);
	relocate_character(4,42,8);
	set_character_facing(0,0);
	set_character_facing(1,0);
	set_character_facing(2,0);
	set_character_facing(3,0);
	set_character_facing(4,0);

	i = 0;
	while (char_ok(i) == 0)
		{ i = i + 1; }

	spawn_creature(8);
	spawn_creature(11);
	relocate_character(8,27,24);
	put_stain_on_space(27,24,-1);
	put_stain_on_space(27,21,-1);
	relocate_character(10,41,35);
	set_character_facing(10,2);
	relocate_character(14,37,31);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();
	pause(7);

	text_bubble_on_char(14,"Yes, I remember now");
	force_instant_terrain_redraw();
	pause(14);

	text_bubble_on_char(14,"");
	text_bubble_on_char(14,"Dilecia never came to our date,");
	relocate_character(10,40,35);
	relocate_character(14,36,31);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(14);
	

	text_bubble_on_char(14,"");
	text_bubble_on_char(14,"but why?");
	relocate_character(10,39,35);
	relocate_character(14,35,31);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(10);


	text_bubble_on_char(14,"");
	relocate_character(10,38,35);
	relocate_character(14,34,31);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(6);

	relocate_character(10,37,35);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(6);

	relocate_character(10,36,35);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(6);

	relocate_character(10,35,35);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(6);

	relocate_character(10,34,35);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(6);

	relocate_character(10,33,35);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(6);

	relocate_character(10,32,35);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(6);

	relocate_character(10,31,35);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(6);

	relocate_character(10,30,35);
	force_instant_terrain_redraw();	
	force_view_center(char_loc_x(10),char_loc_y(10));
	pause(7);

	set_character_facing(10,0);
	relocate_character(10,29,34);
	force_view_center(char_loc_x(10),char_loc_y(10));
	force_instant_terrain_redraw();	
	pause(6);

	text_bubble_on_char(10,"????");
	force_view_center(28,33);
	force_instant_terrain_redraw();	
	pause(15);

	force_view_center(27,32);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,31);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,30);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,29);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,28);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,27);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,26);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,25);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,24);
	force_instant_terrain_redraw();
	pause(4);

	force_view_center(27,23);
	force_instant_terrain_redraw();
	pause(4);

	text_bubble_on_char(8,"This night has been amazing.");
	text_bubble_on_char(10,"");
	relocate_character(10,28,33);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"Just one more thing....");
	relocate_character(10,27,32);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(11,"What's that?");
	relocate_character(10,27,31);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"This...");
	relocate_character(10,27,30);
	relocate_character(8,27,23);
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(8,"");
	relocate_character(10,27,29);
	erase_char(8);
	erase_char(11);
	activate_hidden_group(2);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"Dilecia!");
	relocate_character(10,27,28);
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(10,"");
	erase_char(12);
	spawn_creature(11);
	spawn_creature(8);
	relocate_character(8,27,23);
	set_character_facing(8,4);
	text_bubble_on_char(8,"Oh, um, hi Janok.");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"Did you have fun today?");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(10,".....");
	force_instant_terrain_redraw();
	pause(5);

	text_bubble_on_char(10,"");
	text_bubble_on_char(8,"");
	text_bubble_on_char(10,"How could you?");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(10,"");
	text_bubble_on_char(8,"");
	text_bubble_on_char(10,"Why would you ditch me?");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"Don't raise your voice at me.");
	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"I thought");
	force_instant_terrain_redraw();
	pause(19);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"that you had feelings for me.");
	text_bubble_on_char(8,"");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(8,"Janok you're scaring me.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(11,"Baby, do you know this guy?");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(11,"");
	set_character_facing(8,0);
	text_bubble_on_char(8,"We were friends");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"when we were young.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"He used to live next door.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"I haven't talked with him");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"since I moved away.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"I don't know why he is");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"acting so strange.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	set_character_facing(8,4);
	text_bubble_on_char(10,"WHY DO YOU LIE LIKE THAT!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"TELL HIM ABOUT US!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"TELL HIM HOW YOU FEEL FOR ME!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(11,"Look buddy,");
	relocate_character(8,28,23);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(11,"");
	text_bubble_on_char(11,"quit givin my girl a hard time.");
	relocate_character(11,27,23);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(11,"");
	text_bubble_on_char(8,"Don't hurt him!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(11,"Just leave,");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(11,"");
	text_bubble_on_char(11,"Dilecia doesn't want");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(11,"");
	text_bubble_on_char(11,"to talk with you anyway.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(11,"");
	text_bubble_on_char(10,"You're wrong.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"I don't know what you've");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"done to her,");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"but she has always loved me.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(11,"She doesn't want to see you,");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(11,"");
	text_bubble_on_char(11,"why don't you...");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(11,"");
	set_character_pose(10,1);
	force_instant_terrain_redraw();
	put_jagged_zap(char_loc_x(10),char_loc_y(10),char_loc_x(11),char_loc_y(11),2);
	put_boom_on_char(11,6,0);
	run_animation_sound(53);
	pause(3);

	text_bubble_on_char(11,"AAGHH");
	text_bubble_on_char(8,"NOOO!");
	relocate_character(11,27,22);
	force_instant_terrain_redraw();
	put_jagged_zap(char_loc_x(10),char_loc_y(10),char_loc_x(11),char_loc_y(11),2);
	put_boom_on_char(11,6,0);
	run_animation_sound(53);
	pause(3);

	relocate_character(11,27,21);
	text_bubble_on_char(11,"");
	erase_char(11);
	activate_hidden_group(1);
	set_character_pose(15,7);
	put_stain_on_space(27,21,2);
	play_sound(29);
	set_character_pose(10,0);
	force_instant_terrain_redraw();
	pause(6);

	force_view_center(27,26);
	text_bubble_on_char(10,"......");
	text_bubble_on_char(8,"How could you have done this!");
	set_character_facing(10,4);
	set_character_facing(8,0);
	relocate_character(8,28,22);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"What has come over you?");
	relocate_character(8,28,21);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"You were always so gentle....");
	set_character_facing(8,2);
	force_instant_terrain_redraw();
	pause(20);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"Oh thank goodness,");
	set_character_facing(8,4);
	relocate_character(8,28,22);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"he's still alive.");
	relocate_character(8,28,23);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"You can heal him.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"It'll be like this never happened");
	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"No, I refuse.");
	force_instant_terrain_redraw();
	pause(25);

	text_bubble_on_char(10,"");
	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"Janok, we were friends,");
	relocate_character(8,28,24);
	force_instant_terrain_redraw();
	pause(14);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"please, you can still help him.");
	relocate_character(8,28,25);
	force_instant_terrain_redraw();
	pause(14);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"Do it for me.");
	relocate_character(8,28,26);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"Everything you told me");
	relocate_character(8,28,27);
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"was a lie.");
	relocate_character(8,28,28);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"Why would you say those things");
	set_character_facing(8,2);
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"if you were with another man?");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(10,"");
	text_bubble_on_char(8,"Janok please, talk sense.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"I don't know what you're");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"talking about.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"I haven't talked with you");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"in years.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(10,"You told me you loved me, but");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"you left me alone at the festival,");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"to run off with HIM.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(10,"");
	text_bubble_on_char(8,"Janok enough,");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"I do care for you, don't you");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"remember the times we had?");
	force_instant_terrain_redraw();
	pause(16);


	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"You're the only one who can save him.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"Heal him please,");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"do it for our old friendship.");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"Our friendship ended,");
	set_character_facing(8,4);
	relocate_character(10,27,29);
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"the day you betrayed me.");
	relocate_character(10,27,30);
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(10,"");
	text_bubble_on_char(8,"YOU'RE RIGHT!,");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"YOU'VE ALWAYS BEEN SELFISH!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"HE IS TWICE THE MAN YOU ARE!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"I'VE NEVER CARED ABOUT YOU!");
	set_character_facing(10,0);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(10,"You don't mean that.");
	text_bubble_on_char(8,"");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"I'VE NEVER FELT ANYTHING");
	text_bubble_on_char(10,"");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"BUT PITY FOR YOU.");
	text_bubble_on_char(10,"No...");
	force_instant_terrain_redraw();
	pause(15);


	text_bubble_on_char(8,"");
	text_bubble_on_char(8,"I'VE NEVER...");
	force_instant_terrain_redraw();
	pause(12);


	text_bubble_on_char(8,"");
	text_bubble_on_char(10,"");
	text_bubble_on_char(10,"NOOOO");
	set_character_pose(10,1);
	force_instant_terrain_redraw();
	put_jagged_zap(char_loc_x(10),char_loc_y(10),char_loc_x(8),char_loc_y(8),2);
	put_boom_on_char(8,6,0);
	run_animation_sound(53);
	pause(2);

	relocate_character(8,29,27);
	set_character_pose(10,0);
	force_instant_terrain_redraw();
	pause(2);

	relocate_character(8,30,26);
	force_instant_terrain_redraw();
	pause(2);

	erase_char(8);
	set_terrain(30,26,456);
	force_instant_terrain_redraw();
	pause(2);

	text_bubble_on_char(10,"");
	set_character_facing(10,4);
	relocate_character(10,27,31);
	force_instant_terrain_redraw();
	pause(7);

	relocate_character(10,27,32);
	force_instant_terrain_redraw();
	pause(7);

	relocate_character(10,27,33);
	force_instant_terrain_redraw();
	pause(7);

	force_view_center(3,43);
	force_instant_terrain_redraw();

	text_bubble_on_char(17,"");
	text_bubble_on_char(17,"But how? I remember");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(17,"");
	text_bubble_on_char(17,"it so vividly.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(17,"");
	text_bubble_on_char(17,"I asked her to meet me");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(17,"");
	text_bubble_on_char(17,"in her fathers hay loft.");
	force_instant_terrain_redraw();
	pause(15);

	set_total_visibility(1);
	force_view_center(8,10);
	relocate_character(6,8,10);
	text_bubble_on_char(17,"");
	text_bubble_on_char(13,"See? It's just as I remember.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(13,"");
	text_bubble_on_char(7,"I wanted to know if you");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"would like to go to");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"the festival with me.");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Janok!");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"Of course I'll.....!");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"Are you alright?");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"Maybe you should sit down.");
	force_instant_terrain_redraw();
	pause(17);

	text_bubble_on_char(6,"");
	text_bubble_on_char(7,"Dilecia? Is that you?");
	relocate_character(6,8,11);
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(7,"");
	relocate_character(6,8,11);
	text_bubble_on_char(6,"Your head is burning");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(6,"");
	relocate_character(6,8,11);
	text_bubble_on_char(6,"here have some....");
	force_instant_terrain_redraw();
	pause(13);

	text_bubble_on_char(7,"Just tell me who this is!");
	force_instant_terrain_redraw();
	pause(5);

	text_bubble_on_char(6,"");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(7,"");
	text_bubble_on_char(6,"Janok you're scaring me,");
	force_instant_terrain_redraw();
	pause(15);

	text_bubble_on_char(6,"");
	text_bubble_on_char(6,"it's me, Becky...");
	force_instant_terrain_redraw();
	pause(15);

	put_boom_on_char(6,5,0);
	run_animation();
	erase_char(6);
	activate_hidden_group(3);
	force_instant_terrain_redraw();
	pause(4);

	text_bubble_on_char(7,"Get away!");
	force_instant_terrain_redraw();
	pause(8);

	relocate_character(20,8,10);
	force_instant_terrain_redraw();
	pause(8);

	spawn_creature(21);
	spawn_creature(22);
	text_bubble_on_char(7,"");
	text_bubble_on_char(20,"Janok please, have a drink");
	force_instant_terrain_redraw();
	pause(3);

	text_bubble_on_char(23,"Janok it's me!");
	text_bubble_on_char(24,"I love you Janok!");
	erase_char(22);
	set_character_facing(7,2);
	force_instant_terrain_redraw();
	pause(3);

	spawn_creature(22);
	erase_char(21);
	force_instant_terrain_redraw();
	pause(3);

	spawn_creature(21);
	erase_char(22);
	set_character_facing(7,6);
	force_instant_terrain_redraw();
	pause(3);

	spawn_creature(22);
	erase_char(21);
	set_character_facing(7,2);
	force_instant_terrain_redraw();
	pause(3);

	spawn_creature(21);
	erase_char(22);
	force_instant_terrain_redraw();
	pause(3);

	spawn_creature(22);
	erase_char(21);
	force_instant_terrain_redraw();
	pause(3);

	spawn_creature(21);
	erase_char(22);
	set_character_facing(7,6);
	force_instant_terrain_redraw();
	pause(3);

	text_bubble_on_char(25,"Please Janok!!");
	spawn_creature(22);
	erase_char(21);
	force_instant_terrain_redraw();
	pause(3);

	text_bubble_on_char(24,"");
	spawn_creature(22);
	erase_char(21);
	set_character_facing(7,0);
	force_instant_terrain_redraw();
	pause(3);

	text_bubble_on_char(26,"Tomorrow at eight.");
	text_bubble_on_char(20,"");
	text_bubble_on_char(20,"Janok are you listening?");
	spawn_creature(21);
	set_character_facing(7,2);
	erase_char(22);
	force_instant_terrain_redraw();
	pause(3);

	spawn_creature(27);
	spawn_creature(22);
	erase_char(21);
	force_instant_terrain_redraw();
	pause(3);

	erase_char(27);
	spawn_creature(22);
	erase_char(21);
	set_character_facing(7,6);
	force_instant_terrain_redraw();
	pause(3);

	spawn_creature(27);
	spawn_creature(22);
	erase_char(21);
	force_instant_terrain_redraw();
	pause(3);

	erase_char(27);
	spawn_creature(22);
	erase_char(21);
	set_character_facing(7,2);
	force_instant_terrain_redraw();
	pause(3);

	erase_char(22);
	spawn_creature(21);
	spawn_creature(27);
	force_instant_terrain_redraw();
	pause(3);

	erase_char(21);
	erase_char(27);
	spawn_creature(22);
	set_character_facing(7,6);
	force_instant_terrain_redraw();
	pause(3);

	erase_char(22);
	spawn_creature(21);
	spawn_creature(27);
	force_instant_terrain_redraw();
	pause(3);

	erase_char(21);
	erase_char(27);
	spawn_creature(22);
	set_character_facing(7,0);
	force_instant_terrain_redraw();
	pause(3);

	text_bubble_on_char(7,"Which of you is real?");
	set_character_facing(7,6);
	erase_char(22);
	spawn_creature(21);
	spawn_creature(27);
	force_instant_terrain_redraw();
	pause(3);

	text_bubble_on_char(26,"");
	text_bubble_on_char(20,"");
	text_bubble_on_char(24,"");
	text_bubble_on_char(23,"");
	text_bubble_on_char(25,"");
	spawn_creature(22);
	spawn_creature(21);
	spawn_creature(27);
	set_character_facing(7,2);
	force_instant_terrain_redraw();
	pause(5);

	set_character_facing(7,6);
	force_instant_terrain_redraw();
	pause(5);

	text_bubble_on_char(7,"");
	text_bubble_on_char(7,"I can't tell...");
	set_character_facing(7,0);
	force_instant_terrain_redraw();
	pause(5);

	set_character_facing(7,2);
	force_instant_terrain_redraw();
	pause(5);

	set_character_facing(7,6);
	force_instant_terrain_redraw();
	pause(5);

	text_bubble_on_char(26,"It's me, Dilecia!");
	text_bubble_on_char(20,"I'm right here Janok");
	text_bubble_on_char(24,"Janok don't you love me?");
	text_bubble_on_char(23,"Listen to me Janok!");
	text_bubble_on_char(25,"Janok look here.");
	set_character_facing(7,0);
	force_instant_terrain_redraw();
	pause(15);

	activate_hidden_group(6);
	force_instant_terrain_redraw();
	force_view_center(5,41);
	text_bubble_on_char(29,"");
	text_bubble_on_char(29,"Janok!!");
	force_instant_terrain_redraw();
	pause(15);

	erase_char(28);
	run_animation();
	force_instant_terrain_redraw();
	pause(10);



	force_view_center(char_loc_x(i),char_loc_y(i));
	text_bubble_on_char(i,"So YOU killed Dilecia!");
	force_instant_terrain_redraw();
	pause(16);	

	text_bubble_on_char(19,"No, no no");
	text_bubble_on_char(i,"");
	text_bubble_on_char(i,"It was all your fault!");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(i,"");
	text_bubble_on_char(i,"You just chose the Empire");
	force_instant_terrain_redraw();
	pause(16);

	text_bubble_on_char(19,"");
	text_bubble_on_char(19,"How can this be?");
	text_bubble_on_char(i,"");
	text_bubble_on_char(i,"as a scapegoat!");
	force_instant_terrain_redraw();
	pause(15);	

	text_bubble_on_char(i,"");
	text_bubble_on_char(19,"");
	force_instant_terrain_redraw();

	reset_dialog();
	add_dialog_str(0,"Janok has been shaking his head all this time, _No, it's impossible. I remember him killing her, but I remember ME killing her too._",0);
	add_dialog_str(1,"_I wrote it down so I wouldn't forget, I recited it every day until the pain became to much and I cast it into the fire. No.....I could never burn my memories of Dilecia, I pulled it out and concealed it from even myself....._",0);
	add_dialog_str(2,"_But not from her. I could never hide from her. The journal was always there to remind me, but somehow I've still forgotten. Why have I been killing all these people if Dilecia's murder was my fault?_",0);
	add_dialog_str(3,"_No, why would I kill the love of my life? This is all wrong...I...I..._",0);
	add_dialog_choice(0,"Okay");
	if(run_dialog(1) == 1)

	text_bubble_on_char(19,"This changes nothing");
	force_instant_terrain_redraw();
	pause(15);

	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(30),char_loc_y(30),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(31),char_loc_y(31),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(33),char_loc_y(33),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(34),char_loc_y(34),1);
	run_animation_sound(89);
	text_bubble_on_char(19,"");
	text_bubble_on_char(19,"I've come too far");
	force_instant_terrain_redraw();
	pause(10);

	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(35),char_loc_y(35),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(32),char_loc_y(32),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(36),char_loc_y(36),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(37),char_loc_y(37),1);
	run_animation_sound(89);
	text_bubble_on_char(19,"");
	text_bubble_on_char(19,"to be tricked");
	force_instant_terrain_redraw();
	pause(10);


	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(30),char_loc_y(30),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(31),char_loc_y(31),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(33),char_loc_y(33),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(34),char_loc_y(34),1);
	run_animation_sound(89);
	text_bubble_on_char(19,"");
	text_bubble_on_char(19,"into giving up!");
	force_instant_terrain_redraw();
	pause(10);

	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(35),char_loc_y(35),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(32),char_loc_y(32),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(36),char_loc_y(36),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(37),char_loc_y(37),1);
	run_animation_sound(89);
	text_bubble_on_char(19,"");
	text_bubble_on_char(19,"LEAVE ME PHANTOMS!");
	force_instant_terrain_redraw();
	pause(10);

	text_bubble_on_char(19,"");
	force_instant_terrain_redraw();

	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(30),char_loc_y(30),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(31),char_loc_y(31),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(33),char_loc_y(33),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(34),char_loc_y(34),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(35),char_loc_y(35),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(32),char_loc_y(32),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(36),char_loc_y(36),1);
	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(37),char_loc_y(37),1);
i = 0;
while(i <= 4)
{	if(char_ok(i) == 1)
	{	put_jagged_zap(char_loc_x(19),char_loc_y(19),char_loc_x(i),char_loc_y(i),1);
		damage_char(i,(get_health(i) - 1),4); }
	i = i + 1;
}
	text_bubble_on_char(19,"");
	text_bubble_on_char(19,"I...");
	force_instant_terrain_redraw();
	pause(12);

	text_bubble_on_char(19,"");
	text_bubble_on_char(19,"I...passed!");
	force_instant_terrain_redraw();
	pause(12);

	text_bubble_on_char(19,"");
	text_bubble_on_char(19,"Dilecia I remain true to you.");
	force_instant_terrain_redraw();
	pause(12);


	run_animation_sound(89);
	put_boom_on_char(19,2,0);
	run_animation_sound(10);
	erase_char(19);
	force_instant_terrain_redraw();
	set_terrain(40,3,137);
	pause(10);

	reset_dialog();
	add_dialog_str(0,"Janok levels you with a blast of lightning before teleporting out of the room. Your entire party collapses onto the ground, writhing in pain.",0);
	add_dialog_str(1,"You think you might have bitten off more than you can chew; Janok is obviously a first-class mage. At this point he just seems to be toying with you.",0);
	add_dialog_str(2,"After what seems an eternity of pain, you stumble to your feet. The wall to the north was ruined by the storm of magic, revealing a hallway.",0);
	add_dialog_str(3,"Janok's last words echoe throughout the room.",0);
	add_dialog_Str(4,"As usual, he sounds completely insane. Perhaps his mental instability will give you the upper hand in a fight. What choice do you have, anyway?",0);
	add_dialog_choice(0,"Ok");
	run_dialog(1);
	set_total_visibility(0);
	set_flag(9,6,1);
}
break;

beginstate start_state;
break;

beginstate exit_state;
break;

beginstate 10;
	move_to_new_town(9,23,12);
break;

beginstate 11;
	move_to_new_town(7,28,38);
break;